<template>
  <div class="main">
    <div class="shadow"></div>

    <div class="box">
      <div class="header">
        <div class="return" @click="$router.back()">
          <img src="../../../assets/image/paysafe/backimg.png" alt="" />
          <span class="text">< 返回</span>
        </div>

        <span style="margin: 0 0.1rem">当前位置：</span>
        <el-breadcrumb separator-class="el-icon-d-arrow-right">
          <el-breadcrumb-item>管理后台</el-breadcrumb-item>
          <el-breadcrumb-item>店铺管理</el-breadcrumb-item>
          <el-breadcrumb-item>
            <span style="color: #E22A1F !important;">设置密码 </span>
          </el-breadcrumb-item>
        </el-breadcrumb>
      </div>
    </div>
    <div
      style="font-family: PingFang SC;
font-size: 0.14rem;
font-weight: bold;
color: #EC6C15;
margin-top: 0.32rem;
"
    >
      如需修改店铺名、登录账号、所在市场、店铺地址资料信息，可联系平台客服为您修改处理。
    </div>
    <div class="shop">
      <div class="item">
        <div>
          <span style="color: red;font-size: 0.14rem;">*</span>
          联系人姓名
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div style="margin-left:1.32rem">
          <span style="color: red;font-size: 0.14rem;">*</span>
          联系电话
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
      </div>
      <div class="item" style="margin-left:0.3rem">
        <div>
          <span style="color: red;font-size: 0.14rem;">*</span>
          微信号
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div style="margin-left:1.5rem">
          <span style="color: red;font-size: 0.14rem;">*</span>
          QQ号
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
      </div>
      <div class="item" style="margin-left:-0.1rem">
        <div>
          <span style="color: red;font-size: 0.14rem;">*</span>
          是否支持退货
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div style="margin-left:1rem">
          <span style="color: red;font-size: 0.14rem;">*</span>
          是否支持换货
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
      </div>
      <div class="item" style="margin-left:-0.1rem">
        <div>
          <span style="color: red;font-size: 0.14rem;">*</span>
          是否支持退货
          <el-select v-model="value4" clearable placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
      </div>
    </div>
    <div class="jichu">
      <div class="mainbox">
        <div class="loads">
          <span style="color: red;font-size: 0.14rem;">*</span>
          头像
          <div class="items">
            <el-upload
              class="avatar-uploader"
              action="https://jsonplaceholder.typicode.com/posts/"
              :show-file-list="false"
              :on-success="handleAvatarSuccess"
              :before-upload="beforeAvatarUpload"
            >
              <img v-if="imageUrl" :src="imageUrl" class="avatar" />
              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
            </el-upload>
            <div class="logo">
              <img src="../../../assets/image/seller/upload.png" alt="" />
              上传图片
            </div>
          </div>
          <span style="color: red;font-size: 0.14rem;">*</span>
          二维码
          <div class="items">
            <el-upload
              class="avatar-uploader"
              action="https://jsonplaceholder.typicode.com/posts/"
              :show-file-list="false"
              :on-success="handleAvatarSuccess"
              :before-upload="beforeAvatarUpload"
            >
              <img v-if="imageUrl" :src="imageUrl" class="avatar" />
              <i v-else class="el-icon-plus avatar-uploader-icon"></i>
            </el-upload>
            <div class="logo">
              <img src="../../../assets/image/seller/upload.png" alt="" />
              上传图片
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="button">确认修改</div>
  </div>
</template>

<script>
import validateCode from '@/components/ValidateCode'
export default {
  components: {
    validateCode
  },
  created () {
    this.type = this.$route.query.type
  },
  data () {
    return {
      type: 1,
      form: {
        name: '',
        password: ''
      },
      rules: {
        name: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
        password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
      }
    }
  },
  methods: {}
}
</script>

<style scoped lang="scss">
.main {
  width: calc(100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #ffffff;
  .shadow {
    flex-shrink: 0;
    width: 100%;
    height: 0.2rem;
    // background: #F5F5F5;
    background: linear-gradient(0deg, #ffffff, #f5f5f5);
  }
  .box {
    padding: 0rem 0.2rem;
    width: calc(100% - 0.4rem);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    .header {
      width: 100%;
      height: 0.34rem;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      font-size: 0.14rem;
      color: #3d3d3d;
      .return {
        width: 0.77rem;
        height: 0.34rem;
        position: relative;
        cursor: pointer;
        img {
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          left: 0;
        }
        .text {
          white-space: nowrap;
          font-size: 0.14rem;
          color: #000000;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translateX(-50%) translateY(-50%);
        }
      }
    }
    .form {
      width: 100%;
      height: auto;
      ::v-deep .el-input__prefix {
        color: #3d3c3c !important;
      }
      ::v-deep .el-input__inner {
        height: 0.4rem !important;
        background: #f5f7f9 !important;
      }
      ::v-deep .el-form-item {
        display: flex;
      }
      .loginbutton {
        margin-top: 0.12rem;
        margin-left: 1rem;
        width: 1.2rem;
        height: 0.36rem;
        border-radius: 0.2rem;
        background: #e22a1f;
        text-align: center;
        line-height: 0.36rem;
        color: #ffffff;
        font-size: 0.14rem;
        cursor: pointer;
      }
      .getCode {
        width: 100% !important;
        height: 0.4rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        ::v-deep .el-input__inner {
          height: 0.4rem !important;
        }
      }
      .getCodeButton {
        width: 1.02rem;
        height: 0.38rem;
        line-height: 0.38rem;
        text-align: center;
        cursor: pointer;
        color: #fa5555;
        border: 1px solid #e22a1f;
      }
      .message {
        margin-top: 0.15rem;
        width: 100%;
        text-align: center;
        font-family: PingFang SC;
        font-size: 0.14rem;
        color: #e22a1f;
        cursor: pointer;
      }
      .tologin {
        margin-top: 0.12rem;
        margin-left: calc(100% - 3.68rem);
        width: 3.68rem;
        text-align: left;
        color: #e22a1f;
        font-size: 0.16rem;
        cursor: pointer;
      }
    }
  }
  .jichu {
    ::v-deep .el-input--suffix .el-input__inner {
      background: #f5f7f9 !important;
      width: 13.91rem !important;
    }
    width: calc(100%-0.36rem);
    // border: 0.01rem solid #e8e8e8;
    padding: 0.2rem 0.17rem 0 0.19rem;
    margin-right: 0.17rem;
    .title {
      font-family: PingFang SC;
      font-size: 0.16rem;
      font-weight: bold;
    }
    .mainbox {
      padding-bottom: 0.48rem;
      //   margin-top: 0.2rem;
      font-family: PingFang SC;
      font-size: 0.14rem;
      .upload {
        width: 1.34rem;
        height: 0.36rem;
        border-radius: 0.2rem;
        background: #e22a1f;
        line-height: 0.36rem;
        text-align: center;
        color: #ffffff;
        margin-left: 0.65rem;
        margin-top: 0.14rem;
        cursor: pointer;
      }
      ::v-deep .el-input--suffix .el-input__inner {
        background: #f5f7f9 !important;
        width: 13.91rem !important;
      }
      .loads {
        margin-top: 0.13rem;
        display: flex;

        .lefttext {
          margin-top: 0.54rem;
          font-size: 0.14rem;
          font-weight: normal;
          color: #a7adb8;
        }
        .lefttext div {
          margin-bottom: 0.09rem;
        }
        // align-items: center;
        .items {
          margin-right: 0.1rem;
          ::v-deep .el-icon-plus:before {
            color: transparent !important;
            z-index: inherit !important;
            font-size: 1.5rem !important;
          }
          ::v-deep .avatar-uploader-icon {
            z-index: 9999999 !important;
          }
          ::v-deep .avatar-uploader .el-upload {
            width: 1.2rem;
            height: 1.2rem;
            border-radius: 0.08rem 0.08rem 0.1rem 0.1rem;
            // border: 0.01rem dashed #d9d9d9;
            // border-radius: 0.06rem;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: 0.01rem dashed #e8e8e8;
          }
          ::v-deep .avatar-uploader {
            background: #f5f7f9 !important;
            border-radius: 0.08rem 0.08rem 0.1rem 0.1rem !important;
            border: 0.01rem dashed #e8e8e8 !important;
          }
          .avatar-uploader .el-upload:hover {
            border-color: #409eff;
          }
          .avatar-uploader-icon {
            font-size: 28px;
            color: #8c939d;
            width: 178px;
            height: 178px;
            line-height: 178px;
            text-align: center;
          }
          .avatar {
            width: 178px;
            height: 178px;
            display: block;
          }
          ::v-deep .el-select {
            margin-left: 0.12rem;
          }
          ::v-deep .el-input--suffix .el-input__inner {
            background: #f5f7f9 !important;
            width: 4rem !important;
          }
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;
          .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: absolute;
            font-family: Source Han Sans CN;
            font-size: 0.12rem;
            color: #666666;
            cursor: pointer;
          }
          .toptitle {
            width: 1.2rem;
            height: 0.3rem;
            border-radius: 0.08rem 0.08rem 0 0;
            opacity: 1;
            background: #ff9fa3;
            position: absolute;
            top: 0.02rem;
            font-family: PingFang SC;
            font-size: 0.12rem;
            text-align: center;
            line-height: 0.3rem;
            color: #ffffff;
          }
          // width: 1.2rem;
          // height: 1.2rem;
        }
      }
    }
  }
  .shop {
    // margin-top: 0.2rem;
    // border: 0.01rem solid #e8e8e8;
    width: calc(100%-1.69rem);
    padding: 0.16rem 1.49rem 0.23rem 0.2rem;
    ::v-deep .el-input--suffix .el-input__inner {
      background: #f5f7f9 !important;
      width: 3.68rem !important;
    }
    .toptitle {
      font-family: PingFang SC;
      font-size: 0.16rem;
      font-weight: bold;
    }
    .item {
      font-family: PingFang SC;
      font-size: 0.14rem;
      display: flex;
      align-items: center;
      margin-top: 0.2rem;
    }
    .item > div {
      margin-right: 0.2rem;
    }
    .buttom {
      margin-top: 0.2rem;
      display: flex;
      .left {
        position: relative;
        width: 3.35rem;
        height: 4.88rem;
        opacity: 1;
        box-sizing: border-box;
        border: 0.01rem solid #e8e8e8;
        .toptitle {
          width: calc(100%-0.23rem);
          height: 0.42rem;
          background: #f5f7f9;
          font-family: PingFang SC;
          font-size: 0.12rem;
          padding-left: 0.13rem;
          line-height: 0.42rem;
          font-weight: 500;
        }
        .middleimg {
          position: absolute;
          top: 1rem;
          left: 0.4rem;
          border: 0.02rem dashed #666666;
        }
        .bottomtitle {
          font-family: PingFang SC;
          font-size: 0.14rem;
          color: #666666;
          margin-top: 3.32rem;
          margin-left: 0.84rem;
        }
      }
      .right {
        display: flex;
        flex-direction: column;
      }
      .right > div {
        width: 9.84rem;
        height: 0.79rem;
        border: 0.01rem solid #e8e8e8;
        margin-left: 0.2rem;
        margin-bottom: 0.2rem;
        padding: 0.13rem 0 0.28rem 0.16rem;
      }
    }
  }
  .button {
    width: 1.2rem;
    height: 0.36rem;
    border-radius: 0.2rem;
    background: #e22a1f;
    font-family: PingFang SC;
    font-size: 0.14rem;
    text-align: center;
    line-height: 0.36rem;
    font-weight: 500;
    color: #ffffff;
    margin-left: 0.5rem;
  }
}
</style>
